package com.zelma.agent.controller;

import java.util.Arrays;
import java.util.Map;

import com.zelma.agent.service.UsergroupbuyService;
import com.zelma.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;





/**
 *
 *
 * @author zelma
 * @email 1239115389@qq.com
 * @date 2022-01-06 16:48:57
 */
@RestController
@RequestMapping("agent/usergroupbuy")
public class UsergroupbuyController {
    @Autowired
    private UsergroupbuyService usergroupbuyService;

    //报名团购--wq
    @RequestMapping("/visit/{groupBuyId}")
    public R visit(@PathVariable("groupBuyId")String groupBuyId){
        return usergroupbuyService.visit(groupBuyId);
    }

}
